package com.cheng.example.atguigu.design_pattern.facade;

/*
 * @author 程帅
 * @createTime: 2020/10/21 21:38
 * @Created: with IntelliJ IDEA.
 */

//爆米花机
public class Popcorn {

    private static Popcorn instance = new Popcorn();

    public static Popcorn getInstance() {
        return instance;
    }

    public void on() {
        System.out.println(" popcorn on ");
    }

    public void off() {
        System.out.println(" popcorn off");
    }

    public void pop() {
        System.out.println(" popcorn is poping ");
    }

}
